<%@ page session="false"%>
<%@ page contentType="text/html;charset=UTF8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@page import="net.sureon.common.SureonConstants"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>同事目录</title>
<style type="text/css">
.style5 {
	width: 100%;
}
</style>

<style type="text/css">
.style1 {
	width: 100%;
}

.style2 {
	font-size: xx-small;
	font-family: Arial;
}

.style3 {
	font-size: xx-small;
	font-family: Arial;
}

.style4 {
	font-size: small;
}
</style>
<style type="text/css">
.ctl00_Navigation11_Menu1_0 {
	background-color: white;
	visibility: hidden;
	display: none;
	position: absolute;
	left: 0px;
	top: 0px;
}

.ctl00_Navigation11_Menu1_1 {
	color: #284E98;
	font-family: Verdana;
	font-size: Small;
	text-decoration: none;
}

.ctl00_Navigation11_Menu1_2 {
	color: #284E98;
	background-color: #B5C7DE;
	font-family: Verdana;
	font-size: Small;
}

.ctl00_Navigation11_Menu1_3 {
	
}

.ctl00_Navigation11_Menu1_4 {
	padding: 2px 5px 2px 5px;
}

.ctl00_Navigation11_Menu1_5 {
	
}

.ctl00_Navigation11_Menu1_6 {
	padding: 2px 5px 2px 5px;
}

.ctl00_Navigation11_Menu1_7 {
	background-color: #B5C7DE;
}

.ctl00_Navigation11_Menu1_8 {
	color: #FF9900;
	font-weight: normal;
}

.ctl00_Navigation11_Menu1_9 {
	background-color: #507CD1;
}

.ctl00_Navigation11_Menu1_10 {
	
}

.ctl00_Navigation11_Menu1_11 {
	background-color: #507CD1;
}

.ctl00_Navigation11_Menu1_12 {
	color: White;
}

.ctl00_Navigation11_Menu1_13 {
	color: White;
	background-color: #284E98;
}

.ctl00_Navigation11_Menu1_14 {
	color: White;
}

.ctl00_Navigation11_Menu1_15 {
	color: White;
	background-color: #284E98;
}

.style1 {
	width: 100%;
}
</style>



</head>
<body>
<jsp:include page="../header.jsp" />
<%
	String navBar = (String) request.getSession().getAttribute(SureonConstants.NAV_BAR_DISPLAY);
  %>
<table cellpadding="0" cellspacing="0" class="style5">
	<tr>
		<td colspan="2">
		<table cellpadding="0" cellspacing="0" class="style5">
			<tr>
				<td style="text-align: left" bgcolor="#FFFBD6" class="style6">
				<table id="ctl00_ContentPlaceHolder1_Menu1"
					class="ctl00_ContentPlaceHolder1_Menu1_2" cellpadding="0"
					cellspacing="0" border="0">
					<tr>
						<td onmouseover="Menu_HoverStatic(this)"
							onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)"
							id="ctl00_ContentPlaceHolder1_Menu1n0">
						<table 						
<c:if test="${view != 'team'}">
class="ctl00_ContentPlaceHolder1_Menu1_4 ctl00_ContentPlaceHolder1_Menu1_9"
</c:if>
							cellpadding="0" cellspacing="0" border="0" width="100%">
							<tr>
								<td style="white-space: nowrap;"><a
									class="ctl00_ContentPlaceHolder1_Menu1_1 ctl00_ContentPlaceHolder1_Menu1_3 ctl00_ContentPlaceHolder1_Menu1_8"
									href="./staffList.do?view=all">所有同事</a></td>
							</tr>
						</table>
						</td>
						<td style="width: 3px;"></td>
				<%
					// 判断用户是否为GroupAdmin/CompanyAdmin
						if(SureonConstants.NAV_BAR_DISPLAY_GROUP.equals(navBar) || SureonConstants.NAV_BAR_DISPLAY_ADMIN.equals(navBar)) {
				 %>	
						<td onmouseover="Menu_HoverStatic(this)"
							onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)"
							id="ctl00_ContentPlaceHolder1_Menu1n1">
						<table cellpadding="0"
							cellspacing="0" border="0" width="100%"
<c:if test="${view == 'team'}">
class="ctl00_ContentPlaceHolder1_Menu1_4 ctl00_ContentPlaceHolder1_Menu1_9"
</c:if>
>
							<tr>
								<td style="white-space: nowrap;"><a
									class="ctl00_ContentPlaceHolder1_Menu1_1 ctl00_ContentPlaceHolder1_Menu1_3"
									href="./staffList.do?view=team">我的下属</a></td>
							</tr>
						</table>
						</td>
<%
						}
%>
					</tr>
				</table>
</td>
</tr>
</table>
				<div>
				<table cellspacing="0" cellpadding="4" border="0"
					id="ctl00_ContentPlaceHolder1_GridView1"
					style="color: #333333; width: 100%; border-collapse: collapse; font-size: small; font-family: Arial">
					<tr
						style="color: White; background-color: #507CD1; font-weight: bold;">
						<th scope="col">姓名</th>
						<th scope="col">团队</th>
						<th scope="col">职位</th>
						<th scope="col">办公电话</th>
						<th scope="col">移动电话</th>
						<th scope="col">传真</th>
						<th scope="col">电子邮箱</th>
						<th scope="col">上司</th>
					</tr>
				<c:forEach var="user" items="${users}" varStatus="rowCounter">
					<c:choose>
						<c:when test="${rowCounter.count % 2 == 0}">
							<c:set var="bgColor" scope="page" value="#EFF3FB;" />
						</c:when>
						<c:otherwise>
							<c:set var="bgColor" scope="page" value="#FFFFFF;" />
						</c:otherwise>
					</c:choose>
<tr style="background-color: ${bgColor}">
						<td>${user.userVO.realName}</td>
						<td>${user.userVO.groupName}</td>
						<td>${user.userVO.title}</td>
						<td>${user.userVO.officeTel}</td>
						<td>${user.userVO.mobileTel}</td>
						<td>${user.userVO.fax}</td>
						<td>${user.userVO.email}</td>
						<td>${user.userVO.superior}</td>
					</tr>
			</c:forEach>
			</table>
				</div>

				<jsp:include page="../footer.jsp"></jsp:include>
</body>
</html>
